<?php
namespace TeamPlayers;

class Team extends AccessControlledObject{
	
	public $color;
	
	public function __construct( $color, $uuid = false )
    {
        parent::__construct( $uuid );
        if ( ! empty( $color ) )
        {
            $this->color = "Red";
            $this->setDescription( "A {$this->color} Car" );
        }
        else
        {
            return false;
        }
    }
    
	/**
     * The method for deleting an access controlled object must call parent::destroy() to remove the object
     * metadata record.
     *
     * @access public
     * @return bool
     */
    public function destroy()
    {
        /*
         * Implement code to delete object data here
         */
         
         /*
          * Then call parent::destroy() to remove the object's metadata record
          */
        return parent::destroy();
    }
}